
package me.zhengjie.service.dto;

import me.zhengjie.modules.system.domain.User;

import java.sql.Timestamp;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author IQW
* @date 2022-07-03
**/
public class AppWorkDto implements Serializable {

    /** 任务ID */
    private Integer workId;

    private Integer areaId;

    private Integer configId;

    /** 分配用户ID */
    private Integer userId;

    /** 标题 */
    private String title;

    private String label;

    private String jjcd;

    /** 类型（1临时巡护，2日常巡护，3紧急巡护） */
    private Integer type;

    /** 目的地 */
    private String address;

    /** 目的地经度 */
    private Double lon;

    /** 目的地纬度 */
    private Double lat;

    private String note;

    private String imgs;

    private String voice;

    private Integer vtime;

    /** 已行驶时长（秒） */
    private Integer workTime;

    /** 已行驶里程（米） */
    private Float workMile;

    /** 巡护开始时间 */
    private Timestamp startTime;

    /** 巡护结束时间 */
    private Timestamp endTime;

    /** 状态（0未开始，1巡护中，2已完成） */
    private Integer status;

    /** 创建日期 */
    private Timestamp createTime;

    /** 更新日期 */
    private Timestamp updateTime;

    //用户信息
    private String nickName;
    private String avatarPath;
    private String workNo;

    public Integer getVtime() {
        return vtime;
    }

    public void setVtime(Integer vtime) {
        this.vtime = vtime;
    }

    public Integer getWorkId() {
        return workId;
    }

    public void setWorkId(Integer workId) {
        this.workId = workId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getType() {
        if(null != this.getLabel()){
            return Integer.parseInt(this.getLabel());
        }else{
            return 1;
        }
    }

    public void setType(Integer type) {

        if(null != this.getLabel()){
            this.type = Integer.parseInt(this.getLabel());
        }
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getJjcd() {
        return jjcd;
    }

    public void setJjcd(String jjcd) {
        this.jjcd = jjcd;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public String getVoice() {
        return voice;
    }

    public void setVoice(String voice) {
        this.voice = voice;
    }

    public Integer getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Integer workTime) {
        this.workTime = workTime;
    }

    public Float getWorkMile() {
        return workMile;
    }

    public void setWorkMile(Float workMile) {
        this.workMile = workMile;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public void setAvatarPath(String avatarPath) {
        this.avatarPath = avatarPath;
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }


}